package edu.ynu.se.xiecheng.achitectureclass.service;

import edu.ynu.se.xiecheng.achitectureclass.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;
import edu.ynu.se.xiecheng.achitectureclass.entity.vo.Result;

/**
 *
 * @author laruui
 * @since 2023-12-07
 */
public interface UserService extends IService<User> {

    /**
     * 登陆
     *
     * @param user 账号密码
     * @return 是/否
     */
    Result login(User user);

    /**
     * 登出
     */
    Result logout();

    /**
     * @return 登陆用户信息
     */
    Result getLoginUserInfo(String token);
}
